{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default  panel-success">
    <div class="panel-heading">
      <h3 class="panel-title">创建组织机构信息</h3>
    </div>
    <div class="panel-body">
      <form id="organizationCreate" class="form-horizontal" method="post" class="post" action="{:url('office/organization/save')}" enctype="multipart/form-data">
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">编 码 <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="code" id="inputPassword3" placeholder="编码:字母&数字,大于3位..." value={$code}>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">父节点 <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></label>
          <div class="col-md-9">
            <select name="parent_id" class="form-control">
              <option value='0' selected>无</option>
                {volist name="organization_tree" id="select" }
                   <option value='{$select.id}' >
                      {switch name='$select.level'}
                        {case value="0"}{$select.title}{/case}
                        {case value="1"}&nbsp;&nbsp;{$select.title}{/case}
                        {case value="2"}&nbsp;&nbsp;&nbsp;&nbsp;{$select.title}{/case}
                        {case value="3"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$select.title}{/case}
                        {case value="4"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$select.title}{/case}
                        {default /}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Level-{$select.level}&nbsp;:&nbsp;{$select.title}
                      {/switch}
                  </option>
                {/volist}
            </select>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">名 称 <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="title" id="inputPassword3" placeholder="名称:大于5位...">
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">地 址 <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="address" id="inputPassword3" placeholder="地址:请选择??...">
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">增加记录人ID</label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="create_id" id="inputPassword3" value="{$Request.cookie.login_code}" readonly>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">增加记录人姓名</label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="create_name" id="inputPassword3" value="{$Request.cookie.login_name}" readonly>
          </div>
        </div>
       <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">详细说明</label>
          <div class="col-md-9">
            <textarea class="form-control" rows="5" name="detail" id="inputPassword3" placeholder="请输入信息..."></textarea>
          </div>
        </div>
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">是否某事情</label>
          <div class="col-md-9">
              <label class="radio-inline">
                <input type="radio" name="is_sth" id="inlineRadio1" value="0" checked> 否
              </label>
              <label class="radio-inline">
                <input type="radio" name="is_sth" id="inlineRadio2" value="1" >是
              </label>
          </div>
        </div>
        <!-- 注:此段为演示用,并无数据提交 ↓ -->
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">选择</label>
          <div class="col-md-9">
            <label class="radio-inline">
              <input type="radio" name="" id="inlineRadio1" value="1"> 是否A
            </label>
            <label class="radio-inline">
              <input type="radio" name="" id="inlineRadio2" value="1"> 是否B
            </label>
            <label class="radio-inline">
              <input type="radio" name="" id="inlineRadio3" value="1"> 是否C
            </label>
          </div>
        </div>
        <!-- 注:此段为演示用,并无数据提交 ↑ -->
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">某物数量</label>
          <div class="col-md-9">
            <input type="number" name='sth_num' class="form-control" id="inputPassword3"  placeholder="请输入100以内数字....">
          </div>
        </div>
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">状态</label>
          <div class="col-md-9">
            <select name="static" class="form-control">
              <option value='' >--请选择--</option>
              <option value='1' selected>正常</option>
              <option value='2' >借调</option>
              <option value='3' >休假</option>
              <option value='4' >其他</option>
            </select>
          </div>
        </div>
        <!-- 注:此段为文件上传,测试 ↓ -->
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">照片</label>
          <div class="col-md-9">
            <input type="file" name='pic' class="form-control" id="inputPassword3"  placeholder="请选择照片...">
          </div>
        </div>
        <!-- 注:此段为文件上传,测试 ↑ -->
        <div class="form-group">
          <div class="text-center">
            <p>
              <input type="hidden" name="__token__" value="{$Request.token}" />
              <a href="{:url('office/organization/index')}"  class="btn btn-primary">返  回  <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span></a>
              <button type="submit" class="btn btn-primary">提  交  <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span></button>
            </p>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>